

<?php if(validation_errors()){error(validation_errors()); }?>
<?php if(isset($error)){error($error); }?>
<?php 
	$attrbutes = array(
		'class' => 'form-horizontal',
		'id' => 'form_add'
	);
	echo form_open_multipart('ecard/add',$attrbutes);
?>
	<div class="contorl-group row">
		
	<div class="navbar navbar-inverse navbar-fixed-top bs-docs-nav">
	  <ul class="breadcrumb">
        <li><a href="#">网络名片</a> <span class="divider">></span></li>
        <li class="active">添加模板</li>
      </ul>
	</div>
		
		
		<div class="control-group">
              <label for='title' class="control-label"><s>*</s>模板名</label>
              <div class="controls">
				<input type="text" value="<?php echo set_value('title');?>" name="title" data-rules="{required:true}"  aria-disabled="false"/>
              </div>
        </div>
		
		<div class="control-group">
              <label for='info' class="control-label"><s>*</s>模板说明</label>
              <div class="controls">
				<input type="text" value="<?php echo set_value('info');?>"  name="info" data-rules="{required:true}"  aria-disabled="false"/>
              </div>
        </div>
		
		<div class="control-group">
              <label for='master' class="control-label"><s>*</s>模板底版</label>
              <div class="controls">
				<input type="file" value="<?php echo set_value('master');?>"  name="master" data-rules="{required:true}" />
 
              </div>
        </div>
		
		<div class="control-group">
              <label for='thumb' class="control-label"><s>*</s>模板缩略图</label>
              <div class="controls">
					<input type="file" value="<?php echo set_value('thumb');?>"  name="thumb" data-rules="{required:true}" />
              </div>
        </div>
		
		<div class="control-group">
              <label for='status' class="control-label"><s>*</s>是否启用</label>
              <div class="controls">
				<input type="radio" name="status" value="1"  checked="checked" > 是
                <input type="radio" name="status" value="0"> 否
                <span class="auxiliary-text">......</span>
              </div>
        </div>
		
		
		<div class="actions-bar  centered">
			<input type="submit" class='button button-primary' checked="checked" value="确认添加"/>
			<input type="reset" class='button' checked="checked" value="重置"/>
		</div>
		
	</div>
	

<?php echo form_close();?>

<script type='text/javascript'>

var Form = BUI.Form;
new Form.Form({
	srcNode:'#form_add'
}).render();


</script>